<template>
  <!-- vue3 中的组件 可以没有根标签 -->
  <h1>我是APP组件</h1>
  <Demo></Demo>
</template>

<script>
import Demo from './components/Demo';
export default {
  name: "App",
  components: {Demo},
  setup(){
    function showHello(val){
      console.log(val);
    }

    return {
      showHello
    }
  },
};
</script>

<style scoped>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
